package com.cxf.windex.entity;

import lombok.*;

import java.util.Date;
import javax.persistence.*;

@Table(name = "b_templates")
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@NoArgsConstructor
@Getter
@Setter
public class Templates {
    /**
     * ID
     */
    @Id
    private Long id;

    /**
     * 名称
     */
    private String title;

    /**
     * 缩略图
     */
    private String thumbnail;

    /**
     * 描述
     */
    private String description;

    /**
     * 适用范围，0商家 1村长
     */
    private String ranges;

    /**
     * 状态  1有效 2失效
     */
    private String status;

    /**
     * 类型  0模板 1+组件
     */
    private String type;

    @Column(name = "order_num")
    private Integer orderNum;

    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    private Date crtTime;

    /**
     * 创建用户IP
     */
    @Column(name = "crt_host")
    private String crtHost;

    /**
     * 更新时间
     */
    @Column(name = "upd_time")
    private Date updTime;

    /**
     * 更新用户IP
     */
    @Column(name = "upd_host")
    private String updHost;

    /**
     * 缩略图
     */
    @Column(name = "json_str")
    private String jsonStr;


}
